<!Doctype html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <link th:href="@{/bootstrap-4.5.0-dist/css/bootstrap.css}" rel="stylesheet">
</head>

<body>
        <div class="container">
            <h3>添加房源</h3>
            <table class="table">
            <form th:action="@{/restful/house}" method="post" enctype="multipart/form-data">
                <input hidden name="_method" value="post">

                <div class="form-group">
                    <label>房屋名称</label>
                    <input name="housename" class="form-control">
                </div>
                <div class="form-group">
                    <label>房屋地址</label>
                    <input name="houseaddress" class="form-control">
                </div>
                <div>
                    <label>房屋面积(㎡) </label>
                    <input name="housesize" class="form-control">
                </div>
                <div>
                    <label>房屋类型 </label>
                    <select name="housetype" class="form-control">
                        <option>--请选择--</option>
                        <option>一居</option>
                        <option>二居</option>
                        <option>三居</option>
                    </select>

                </div>
                <div class="form-group">
                    <label>房屋价格(万)</label>
                    <input name="houseprice" class="form-control">
                </div>
                <div class="form-group">
                    <label>房屋状态</label>
                    <select name="housestate" class="form-control">
                        <option>--请选择--</option>
                        <option th:value="在售">在售</option>
                        <option th:value="出售">出售</option>
                        <option>已下架</option>
                        <option>即将上线</option>
                    </select>

                </div>
                <div class="form-group">
                    <label>用户编号</label>
                    <input name="user_id" class="form-control">
                </div>

                <input type="file" name="file"><br>
                <br>
<!--                <form th:action="@{/restful/house}" method="post" enctype="multipart/form-data">-->
<!--                    <input type="file" name="file" ><br>-->
<!--                    <input type="submit" value="上传">-->
<!--                </form>-->
                <br>
                <input type="submit" class="btn btn-success">
                &nbsp; &nbsp; &nbsp;
                <input type="reset" value="Reset" class="btn btn-info" />
            </form>
            </table>
       </div>




</body>

</html>